package com.example.studentdemo.service;

import com.example.studentdemo.entity.Teacher;
import com.example.studentdemo.entity.Account;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface TeacherService {
    List<Teacher> selectAll(Teacher teacher);

    void add(Teacher teacher);

    void register(Teacher teacher);

    void update(Teacher teacher);

    PageInfo<Teacher> selectPage(Integer pageNum, Integer pageSize, Teacher teacher);

    void deleteById(Integer id);

    void deleteBatch(List<Teacher> teacherList);

    Teacher selectById(Integer userId);

    Teacher login(Account account);

    void updatePassword(Account account);

    Teacher selectByUsername(String username);
}